﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
///ASPBaseClass 的摘要说明
/// </summary>
public class ASPBaseClass : System.Web.UI.Page
{
    public static string UserName = string.Empty;
    public static int UserId = 0;
    public ASPBaseClass()
    {
    }

    protected override void OnInit(EventArgs e)
    {
        base.OnInit(e);
        if (Session["User"] == null)
        {
            Response.Redirect("~/RedirectLogin.htm");
        }
        else
        {
            UserName = Session["User"].ToString().Split('&')[0];
            UserId = Convert.ToInt32(Session["User"].ToString().Split('&')[1]);
        }
    }
}